package com.itheima.mapper;

import com.itheima.pojo.PublishWork;
import com.itheima.pojo.ShowWorks;
import com.itheima.pojo.vo.UserOv;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WorkMapper {

    @Insert("insert into assignment(user_id,name,memo,type,created_on) values (#{userId},#{name},#{memo},#{type},#{createdOn})")
    int insertNewWork(PublishWork publishWork);

    List<UserOv> selectWorks(ShowWorks showWorks);
}
